<?php

namespace app\index\service;

use app\common\model\Consulting;
use app\index\dao\ConsultingDao;

/**
 * Class AdConsultingInfoService
 * @package app\index\service
 */
class AdConsultingInfoService
{

    private ConsultingDao $consultingDao;

    public function __construct(ConsultingDao $consultingDao)
    {

        $this->consultingDao = $consultingDao;
    }

    /**
     * @param $id
     * @return Consulting
     */
    public function read($id): Consulting
    {
        return $this->consultingDao->findOfAd($id);
    }
}
